package com.feimeng.lovehulv.adapter;

import java.util.List;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

public class MyFragmentPagerAdapter extends FragmentPagerAdapter {
	private List<Fragment> mTabs;

	public MyFragmentPagerAdapter(FragmentManager fm, List<Fragment> tabs) {
		super(fm);
		this.mTabs = tabs;
	}

	@Override
	public android.support.v4.app.Fragment getItem(int position) {
		return mTabs.get(position);
	}

	@Override
	public int getCount() {
		return mTabs.size();
	}

}
